#ifndef TraceCallbackImpl_H
#define TraceCallbackImpl_H

#include "common_types.h"
#include "jni_api.h"

class TraceCallbackImpl : public webrtc::TraceCallback, public JniCallbackGlobal
{
public:
	TraceCallbackImpl(void);
	~TraceCallbackImpl(void);

protected:	//JniCallbackBase
	virtual bool init_jni(JNIEnv* env);

public:
	virtual void Print(webrtc::TraceLevel level, const char* message, int length);

protected:
	jmethodID m_mid_Print;
	jclass m_cls_TraceLevel;
	jmethodID m_mid_TraceLevel_fromValue;
};

#endif //!TraceCallbackImpl_H


